<template>
  <div>
    <button @click="btnClick">按钮点击</button>
  </div>
</template>

<script>
import emmiter from "./utils/eventbus";

export default {
  methods: {
    btnClick() {
      console.log("按钮点击");
      emmiter.emit("why", { name: "why", age: 18 }, 132);
    },
  },
};
</script>

<style scoped></style>
